{include file="user.header.html"} 
<div id="main" class="clearfix">{include file="user.menu.html"}
  <div id="right">{include file="user.curlocal.html"}
    <div class="wrapful">{include file="user.submenu.html"}
      <div class="wrap">
        <div class="eject_btn_two eject_pos3" title="{$lang.gcategory_add}" style="margin:0;right:0;left:94px; width:100px;border-radius:4px 4px 0 0; top:-33px"><b class="ico3 fs13" ectype="dialog" dialog_title="{$lang.gcategory_add}" dialog_id="my_category_add" dialog_width="480" uri="{url route='my_category/add'}">{$lang.gcategory_add}</b></div>
        <div class="public table">
          <table id="my_category" server="{url route='my_category/ajax_col'}">
            <!-- {if $gcategories} -->
            <tr class="gray" ectype="table_header">
              <th width="30"><input id="all" type="checkbox" class="checkall" /></th>
              <th class="align1" coltype="editable" column="cate_name" checker="check_required" inputwidth="50%">{$lang.cate_name}</th>
              <th class="width15 align2" coltype="editable" column="sort_order" checker="check_max" inputwidth="30px">{$lang.sort_order}</th>
              <th class="width15 align2" coltype="switchable" column="if_show" checker="" onclass="right_ico" offclass="wrong_ico">{$lang.if_show}</th>
              <th class="width3 align1">{$lang.handle}</th>
            </tr>
            <!-- {/if} --> 
            <!-- {if $gcategories} -->
            <tbody id="treet1">
              <!-- {/if} --> 
              <!-- {foreach from=$gcategories item=gcategory name=fe_gcategory} -->
              <tr class="line {if $smarty.foreach.fe_gcategory.last}last_line{/if}" ectype="table_item" idvalue="{$gcategory.cate_id}">
                <td class="align2"><input type="checkbox" class="checkitem" value="{$gcategory.cate_id}" /></td>
                <td class="width7">&nbsp;&nbsp;<span ectype="editobj">{$gcategory.cate_name|escape}</span></td>
                <td class="align2"><span ectype="editobj">{$gcategory.sort_order}</span></td>
                <td><span {if $gcategory.if_show}class="right_ico" status="on"{else}class="wrong_ico" status="off"{/if}ectype="editobj"></span></td>
                <td class="padding5">
                  <a href="javascript:void(0);" ectype="dialog" dialog_width="480" dialog_title="{$lang.add_child}" dialog_id="my_category_add" uri="{url route='my_category/add' pid=$gcategory.cate_id}" class="add1_ico">{$lang.add_child}</a> 
                  
                  <a href="javascript:void(0);" ectype="dialog" dialog_width="480" dialog_title="{$lang.edit}" dialog_id="my_category_edit" uri="{url route='my_category/edit' id=$gcategory.cate_id}" class="edit1">{$lang.edit}</a> <a href="javascript:drop_confirm('{$lang.drop_confirm}', '{url route='my_category/delete' id=$gcategory.cate_id}');" class="delete">{$lang.drop}</a></td>
              </tr>
              <!-- {foreach from=$gcategory.children item=child name=fe_child} -->
              <tr class="line {if $smarty.foreach.fe_gcategory.last}last_line{/if}" ectype="table_item" idvalue="{$child.cate_id}">
                <td class="align2"><input type="checkbox" class="checkitem" value="{$child.cate_id}" /></td>
                <td class="width7">&nbsp;&nbsp;<span ectype="editobj" style="margin-left:20px;">{$child.cate_name|escape}</span></td>
                <td class="align2"><span ectype="editobj">{$child.sort_order}</span></td>
                <td><span {if $child.if_show}class="right_ico" status="on"{else}class="wrong_ico" status="off"{/if}ectype="editobj"></span></td>
                <td class="padding5">
                  <a href="javascript:void(0);" ectype="dialog" dialog_width="480" dialog_title="{$lang.edit}" dialog_id="my_category_edit" uri="{url route='my_category/edit' id=$child.cate_id}" class="edit1">{$lang.edit}</a> <a href="javascript:drop_confirm('{$lang.drop_confirm}', '{url route='my_category/delete' id=$child.cate_id}');" class="delete">{$lang.drop}</a></td>
              </tr>
              <!--{/foreach}--> 
              <!-- {foreachelse} -->
              <tr>
                <td colspan="5"><div class="notice-word">
                    <p>{$lang.no_records}</p>
                  </div></td>
              </tr>
              <!--{/foreach}--> 
              <!-- {if $gcategories} -->
            </tbody>
            <!-- {/if} --> 
            <!-- {if $gcategories} -->
            <tr class="btion">
              <th><input id="all2" type="checkbox" class="checkall" /></th>
              <th colspan="4"><p class="position1">
                  <label for="all2"><span class="all">{$lang.checkall}</span></label>
                  <a href="javascript:void(0);" ectype="batchbutton" class="delete" uri="{url route='my_category/drop'}" name="id" presubmit="confirm('{$lang.drop_confirm}')">{$lang.drop}</a></p></th>
            </tr>
            <!-- {/if} -->
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<iframe id="iframe" name="iframe" src="about:blank" frameborder="0" width="0" height="0" style="display:none"></iframe>
{include file="user.footer.html"}